﻿using JST.TPLMS.Contract;
using JST.TPLMS.DataBase;
using JST.TPLMS.Entitys.Entities;
using JST.TPLMS.Repository.BaseFiles;

namespace JST.TPLMS.Repository
{
    public class SupplierRepository : BaseRepository<Supplier>, ISupplierRepository
    {
        private readonly TPLMSDbContext _db;
        public SupplierRepository(TPLMSDbContext db) : base(db)
        {
            _db = db;
        }

        public void Update(Supplier entity)
        {
            _db.Suppliers.Update(entity);
        }
    }
}
